import request from '@/utils/request'

// 查询积分变动记录列表
export function listPoints(query) {
  return request({
    url: '/points/points/list',
    method: 'get',
    params: query
  })
}

// 查询积分变动记录详细
export function getPoints(id) {
  return request({
    url: '/points/points/' + id,
    method: 'get'
  })
}

// 新增积分变动记录
export function addPoints(data) {
  return request({
    url: '/points/points',
    method: 'post',
    data: data
  })
}

// 修改积分变动记录
export function updatePoints(data) {
  return request({
    url: '/points/points',
    method: 'put',
    data: data
  })
}

// 删除积分变动记录
export function delPoints(id) {
  return request({
    url: '/points/points/' + id,
    method: 'delete'
  })
}
